<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->params['static'].'assets/js/bootbox.min.js',2); ?>
<div class="page-header">
							<h1>
						    我参与的问卷
							</h1>
</div>
<div class="row">
  <div class="col-xs-12">
     <div class="row">
							<div class="widget-box">
						<div class="widget-header widget-header-small">
								<h5 class="lighter">我参与的问卷</h5>
						</div>

						<div class="widget-body">
								<div class="widget-main">
								<div class="table-responsive">
											<table id="sample-table-1" class="table table-striped table-bordered table-hover">
												<thead>
													<tr>
														
														<th>调查问卷名称</th>
														<th>题目数目</th>
														<th>答题人数</th>
														<th>
															<i class="icon-time bigger-110 hidden-480"></i>
															参加时间
														</th>
														
														<th>问卷简介</th>
													</tr>
												</thead>

												<tbody>
												<?php
												  foreach($stusurs as $s){
													 echo '
													<tr>
														<td>
															<a href="#">'.$s->survey->name.'</a>
														</td>
													
														<td>'.$s->survey->questionnum.'</td>
														<td>'.$s->survey->attendnum.'</td>
														<td>'.$s->addtime.'</td>
														

														
														<td>
															 <span display-detail-id="'.$s->survey->surveyId.'" style="display:none;">'.$s->survey->detail.'</span>
															<button class="btn btn-sm btn-info" detail-id="'.$s->survey->surveyId.'">
																详情
															</button>
															
														</td>
													</tr>';
												  }
                                                   ?>
												</tbody>
											</table>
										</div><!-- /.table-responsive -->
								</div>
							</div>
						</div>
					</div>
			</div>
			
</div>
<script type="text/javascript">
   jQuery(function($){
	   
		 
	      
	      $('[detail-id]').on("click",function(){
			var id = $(this).attr('detail-id');
			bootbox.alert($("[display-detail-id = "+id+"]").html(),function(){
				
				
			});
		});
	   
   })
</script>